package abstractfactory;

/**
 * @author gaopeng
 * @date 2019/12/8 11:43 上午
 */
public class SexHuman implements ISexHuman {
    private IHuman human;

    private ISex sex;

    public SexHuman(IHuman human,ISex sex){
        this.human = human;
        this.sex = sex;
    }

    @Override
    public void getColor() {
        human.getColor();
    }

    @Override
    public void getLanguage() {
        human.getLanguage();
    }

    @Override
    public void getSex() {
        sex.getSex();
    }
}
